import request from '@/utils/request'


export function upLoadFile(query) {
  return request({
    url: '/attachment/uploadFile',
    headers:{
		contentType:'multipart/form-data'
	},
    method: 'post',
    data: query
  })
}

export function deleteFile(id) {
  return request({
    url: '/attachment/deleteFile',
    method: 'post',
    data: {
    	attachId:id
    }
  })
}

export function downLoadFile(query) {
  return request({
    url: '/attachment/downLoadFile',
    method: 'get',
    params: query
  })
}


